using roster.Domain;

namespace roster.UI
{
    public class PlayerDisplayDecorator
    {
        public PlayerDisplayDecorator(IPlayer player)
        {
            Player = player;
        }

        public PlayerDisplayDecorator(int position, IPlayer player)
        {
            Player = player;
            Position = position;
        }

        public IPlayer Player { get; private set; }
        public int Position { get; private set; }

        public override string ToString()
        {
            return string.Format("{0}. {1} {2}", Position.ToString().PadLeft(2), Player.Name.PadRight(12), Player.Class);
        }
    }
}